package com.lxit.app.gridpanel.domain;

import java.util.List;



public class Tree {
	private String id ;
	private String text;
	private String leaf;
	private String pid;
	private String url;
	private String allowchild;
	private int start ;
	private int limit;
	

	public int getStart() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	public int getLimit() {
		return limit;
	}
	public void setLimit(int limit) {
		this.limit = limit;
	}
	public String getId() {
		return id;
	}
	public String getText() {
		return text;
	}
	public void setId(String id) {
		this.id = id;
	}

	public void setText(String text) {
		this.text = text;
	}
	public String getLeaf() {
		return leaf;
	}
	public void setLeaf(String leaf) {
		this.leaf = leaf;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getAllowchild() {
		return allowchild;
	}
	public void setAllowchild(String allowchild) {
		this.allowchild = allowchild;
	}
	
	/*public String toString(){
		return "id=" +id + " ,text="+text+" ,pid="+pid;
	}*/
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("{id:'").append(id).append("',");
		sb.append("parentid:'").append(pid).append("',");
		sb.append("leaf:").append(true).append(",");
		sb.append("text:'").append(text).append("'}");
		return sb.toString();
		
	}
}
